package com.itheima.domain;

import java.io.*;

public class ZhuanHuanStream {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr =
                new InputStreamReader(new FileInputStream("D:\\传智黑马javaEE开发习题答案\\练习\\Test3.java"),"gbk");
        int ch;
        while((ch = isr.read()) != -1){
            System.out.println( ch);
        }
        isr.close();

        OutputStreamWriter osw =
                new OutputStreamWriter(new FileOutputStream("D:\\传智黑马javaEE开发习题答案\\练习2\\Test3.java"),"UTF-8");

        osw.write("我爱学习，谁也别打扰我！");
        osw.close();
    }
}
